package com.onecm.biz.merchant.controller.converter;

import java.util.List;
import org.mapstruct.factory.Mappers;
import com.frame.common.ds.bean.PageDTO; 

/**
 * @description ${classInfo.classComment}
 * @author ${authorName}
 * @date ${.now?string('yyyy-MM-dd')}
 */
@org.mapstruct.Mapper//(componentModel = "spring")
public interface ${classInfo.className}Converter {

  ${classInfo.className}Converter INSTANCE = Mappers.getMapper(${classInfo.className}Converter.class);

  ${classInfo.className}Bean toBean(${classInfo.className} entity); 
  
  List<${classInfo.className}Bean> toList (List<${classInfo.className}> userList);

  ${classInfo.className} toEntity(${classInfo.className}AddDTO dto);

  ${classInfo.className} toEntity(${classInfo.className}EditDTO dto);
  
  PageDTO<${classInfo.className}Bean> toPage(PageDTO<${classInfo.className}> page);
}
